package paramTest
{
	
	import flash.display.MovieClip;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class ListTest extends MovieClip
	{
		//-----------------------------------------------------------------------------------
		// public vars
		//-----------------------------------------------------------------------------------
		public var txt : TextField;
		//-----------------------------------------------------------------------------------
		// protected / internal vars
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// private vars
		//-----------------------------------------------------------------------------------
		private var tf : TextFormat;
		//-----------------------------------------------------------------------------------
		// public functions
		//-----------------------------------------------------------------------------------	
		public function ListTest()
		{
			super();
			trace("===> ListTest , ListTest : " );
			tf = new TextFormat( null, 10 );
			txt.defaultTextFormat = tf;
		}
		
		
		[Inspectable(name="textValue",defaultValue="default", type=List, enumeration="default,text1,text2")]
		public function set text ( value : Object ):void
		{
			txt.text = String( value );
			txt.setTextFormat( tf );
		}
		
		[Inspectable(name="fontSize", defaultValue="10", type=List, enumeration="10,20,30")]
		public function set ksmsize( value : Object ):void
		{
			var size : int = int( value.toString() );
			tf.size = size;
		}
		
		
		
		
		
		
		
		
		
		//-----------------------------------------------------------------------------------
		// private functions
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// event handler
		//-----------------------------------------------------------------------------------
	}
	
}